package cn.sunlight.city.mapper;

import cn.sunlight.city.pojo.Town;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName: TownDao
 * @Description: 县区数据访问层
 * @Author: sunlight
 * @Date: 11:31 - 2022/2/10
 * @Version: 1.0
 **/
public interface TownMapper  extends BaseMapper<Town> {

    /**
     * 根据城市编号查询城市信息
     * @param cityCode
     * @return
     */
    List<Town> findTownsByCityCode(@Param("cityCode") String cityCode);

}
